/*******************************************************************
 *
 * Copyright (C), 2021-2022, Letstrong, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-12-14
 * Version     : v0.1
 * Description : 
 *******************************************************************/
#ifndef _APP_OTA_H_
#define _APP_OTA_H_

/*----------------------------Head file----------------------------*/
#include "rwip_config.h"     // SW configuration
#include <stdint.h>          // Standard Integer Definition
#include "ke_task.h"         // Kernel Task Definition
#include "ota.h"

/*----------------------------macro file---------------------------*/

/*----------------------------type define--------------------------*/
/// OTA Application Module Environment Structure
struct app_ota_env_tag
{
    uint8_t conidx;		// Connection handle
};

/*----------------------------var define---------------------------*/
extern struct app_ota_env_tag app_ota_env;
extern const struct ke_state_handler app_ota_table_handler;

/*-------------------------func declaration------------------------*/
extern void app_ota_init(void);	//Initialize ota Application Module
extern void app_ota_add(void);	//Add a ota Service instance in the DB
extern void app_ota_enable_prf(uint8_t conidx);	//Enable the oad Service

/*-----------------------------------------------------------------*/


#endif // _APP_OTA_H_
